/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.Collection;
import java.util.HashSet;

/**
 *
 * @author sio
 */
public class Spe implements Comparable<Spe> {

    private String nom;
    private Collection<Med> lesMeds = new HashSet<Med>();

    public Spe(String num, Collection<Med> lesMeds) {
        this.nom = nom;
        this.lesMeds = lesMeds;
    }

    public String getNom() {
        return nom;
    }

    public Collection<Med> getLesMeds() {
        return lesMeds;
    }

    public int compareTo(Spe s) {
        return nom.compareTo(s.nom);

    }

}
